package com.dkm.ec.so.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.so.domain.ReturnLog;
import com.dkm.ec.so.repository.ReturnLogRepository;
import com.dkm.ec.so.persistence.dao.ReturnLogQueryDao;
import com.dkm.ec.so.persistence.entity.ReturnLogPo;

/**
 * 对象功能:退货操作日志 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-06-20 18:59:29
 */
@Repository
public class ReturnLogRepositoryImpl extends AbstractRepository<String, ReturnLogPo,ReturnLog> implements ReturnLogRepository{
	  
	@Resource
	private  ReturnLogQueryDao returnLogQueryDao;

	public ReturnLog newInstance() {
		ReturnLogPo po = new ReturnLogPo();
		ReturnLog returnLog = SpringHelper.getBean(ReturnLog.class);
		returnLog.setData(po);
		return returnLog;
	}

	public ReturnLog newInstance(ReturnLogPo po) {
		ReturnLog returnLog = SpringHelper.getBean(ReturnLog.class);
		returnLog.setData(po);
		return returnLog;
	} 
	
	@Override
	protected IQueryDao<String, ReturnLogPo> getQueryDao() {
		return returnLogQueryDao;
	}
	
}
